package com.imau.brand.mapper;

import com.imau.brand.bean.Brand;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface BrandMapper {


    public  int addBrand(Brand brand);
    @Delete("delete  from  tb_brand where id= #{id}")
    public  int deleteById(Integer id);

    public  int updateBrand(Brand brand);
    @Select("select * from  tb_brand where id= #{id}")
    public  Brand selectById(Integer id);
    @Select("select  * from tb_brand")
    public List<Brand> selectAll();
}
